package com.zh.service;

import com.zh.domain.dto.iteration.AddIterationRequest;
import com.zh.domain.dto.iteration.UpdateIterationRequest;
import com.zh.domain.entity.Iteration;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zh.domain.vo.iteration.IterationVo;
import com.zh.domain.vo.task.TaskCountVo;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【iterations(迭代表)】的数据库操作Service
 * @createDate 2025-02-09 16:24:10
 */
public interface IterationService extends IService<Iteration> {

    Boolean addIteration(AddIterationRequest addIterationRequest);

    void sendMessageAndDynamicWhenAdd(Iteration iteration);

    List<IterationVo> listByMilestoneId(Integer mileStoneId);

    Boolean updateIteration(UpdateIterationRequest updateIterationRequest);
    Boolean updateIteration(Integer userId,UpdateIterationRequest updateIterationRequest);

    IterationVo getDetail(Integer id);

    void updateProcessById(Integer id);

    TaskCountVo getTaskCount(Integer iterId);
}
